led.bin: start.o led.o
	arm-linux-ld -Tlink.lds -o led.elf $^
	arm-linux-objcopy -O binary led.elf led.bin
	arm-linux-objdump -D led.elf > led_elf.dis
	gcc mkv210_image.c -o mkx210
	./mkx210 led.bin 210.bin

%.o:%.S
	arm-linux-gcc -o $@ $^ -c -nostdlib

%.o:%.c
	arm-linux-gcc -o $@ $< -c -nostdlib

clean:
	rm -rf *.o *.elf *.bin *.dis mkx210
